package com.flymobi.service;

import java.util.List;

import com.flymobi.fw.modules.CommonService;
import com.flymobi.po.Feedback;
import com.flymobi.util.QL;

public class FeedbackService extends CommonService {

	public List<Feedback> list(int startRow, int pagePerSize) {
		return dao.find(Feedback.class, QL.HQL.Feedback.LIST, new Object[] {},
				startRow, pagePerSize);
	}

	public void save(Feedback Feedback) {
		dao.save(Feedback);
	}

	public Feedback load(String id) {
		return dao.load(Feedback.class, new Long(id));
	}

	public Feedback get(String id) {
		return dao.get(Feedback.class, new Long(id));
	}

	public void delete(String id) {
		dao.delete(this.get(id));
	}

	/**
	 * @return
	 */
	public Long getCount() {
		return dao.getCount(QL.HQL.Feedback.GET_COUNT, new Object[] {});
	}
}
